import request from '@/utils/request'
import { status } from 'nprogress'

const api_name = '/stucom'//controller层的父目录

export default {
   

    //获取某个学生对应的竞赛
    getPageList(current,limit,searchObj){
        return request({
            url: `${api_name}/listCom/${current}/${limit}`,
            method: 'post',
            data:searchObj,//做模糊查询
          })
    },


    //获取某个竞赛对应的学生
    getPageList1(current,limit,id,searchObj){
        return request({
            url: `${api_name}/listStudent/${current}/${limit}/${id}`,
            method: 'post',
            data:searchObj,//做模糊查询
          })
    },

    //颁奖
    givePrize(studentId,competitionId){
        return request({
            url: `${api_name}/givePrize/${studentId}/${competitionId}`,
            method: 'post',
            
          })
    },
}